home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / CWBuildAllSOM next >
Encoding:
Text File  |  1996-12-16  |  1.9 KB  |  81 lines  |  [TEXT/MPS ]

  1. #
  2. # CWBuildAllSOM [NoExamples] [NoInternet]
  3. #
  4. # Builds all SOM files. This is meant to be used for CodeWarrior IDE builds only.
  5.  
  6. if "{ODF}" == ""
  7.     Beep
  8.     Beep
  9.     Echo "### CWBuildAllSOM"
  10.     Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)." 
  11.     Echo "### Please do so before continuing. Those files are located in the 'Getting Started'" 
  12.     Echo "### folder. Don't forget to relaunch MPW (or ToolServer)." 
  13.     exit
  14. end
  15.  
  16. Set Examples     1
  17. Set Internet    1
  18.  
  19. For item in {Parameters}
  20.     if {item} == NoExamples
  21.         Set Examples 0
  22.     Else If {item} == "NoInternet"
  23.         Set Internet 0
  24.     else 
  25.         Echo "CWBuildSOM [NoExamples] [NoInternet]"
  26.         exit
  27.     end
  28. End
  29.  
  30. # ----- Sanity checking for Cyberdog
  31. #
  32.  
  33. If {Internet} == 1
  34.     If ¬ "{FWCyberdogIncludes}"
  35.         Echo "### CWBuildAllSOM"
  36.         Echo "### Can’t find the Cyberdog SDK. You must install the UserStartup•ODF-Internet"
  37.         Echo "### (or UserStartupTS•ODF-Internet for ToolServer) before building."
  38.         Echo "### Please do so before continuing. Those files are located in the "
  39.         Echo "### “Getting Started” folder. Don't forget to relaunch MPW (or ToolServer)."
  40.         Echo "### If you don't want to build for Cyberdog, use “CWBuildAllSOM NoInternet”."
  41.         Exit
  42.     End
  43. End
  44.  
  45. Echo "# `Date -t` ----- Starting SOM compiler build."
  46.  
  47. # ----- Build xh, xih for shared library
  48. #
  49. "{ODF}ODFLibrary:CWBuildSOM"
  50.  
  51. # ----- Build xh, xih three layers
  52. #
  53. "{ODF}Found:Layer:CWBuildSOM"
  54. "{ODF}OS:Layer:CWBuildSOM"
  55. "{ODF}Framewrk:Layer:CWBuildSOM"
  56.  
  57. # ----- Build xh, xih for Internet layer
  58. #
  59. if {Internet} == 1
  60.     "{ODF}Internet:CWBuildSOM"
  61. End    
  62.  
  63. # ----- Build xh, xih for each samples
  64. #
  65. if {Examples} == 1
  66.     For example In Button Clock ColorExtension Container Draw Embed Form Hello Nothing Table
  67.         "{ODFDev}{Example}:Sources:CWBuildSOM"
  68.     End
  69. End
  70.  
  71. # ----- Build xh, xih for each internet samples
  72. #
  73. If {Internet} == 1
  74.     For example In CyberStarter Bitmap
  75.         "{ODFDev}{Example}:Sources:CWBuildSOM"
  76.     End
  77. End
  78.  
  79. Echo "# `Date -t` ----- Finished SOM compiler build."
  80.  
  81.